﻿using LoongCAD.STC.Friendly.Dialog.UIControls;
using LoongCAD.STC.Friendly.Plugins;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DetailDemo
{

    /// <summary>
    /// 组件窗口参数
    /// 需要将所有字段初始化作为对应的默认值
    /// </summary>
    [AttributeFields]
    public class StructuresData
    {
        public BeamPropertyPanel.Data beamProps = new BeamPropertyPanel.Data();

        public PlatePropertyPanel.Data plateProps = new PlatePropertyPanel.Data();

        public PlatePropertyPanel.Data stiffProps = new PlatePropertyPanel.Data();

        public int chamferType = 0;

        public double chamferX = 20.0;

        public double chamferY = 20.0;

        public StructuresData()
        {
            plateProps.Thickness = 10.0;
            plateProps.Width = 500.0;
            plateProps.Height = 800.0;
            plateProps.Material = "Q235B";
            plateProps.NoPrefix = "B";
            plateProps.Name = "板";

            beamProps.Profile = "C10";
            beamProps.Material = "Q235B";
            beamProps.NoPrefix = "C";
            beamProps.Name = "抗剪键";

            stiffProps.Thickness = 10.0;
            stiffProps.Width = 100.0;
            stiffProps.Height = 250.0;
            stiffProps.Material = "Q235B";
            stiffProps.NoPrefix = "B";
            stiffProps.Name = "加劲板";
        }
    }
}
